package com.sp2.dev.test.listener.test;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-2-10
 * Time: 下午4:07
 * To change this template use File | Settings | File Templates.
 */
public class LookImpl implements Look {

    private String name;

    public LookImpl(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }


    public void help() {
        System.out.println(this.name + " 帮忙来了");
    }

    public void attack(Target target) {
        System.out.println(this.name + " 需要求救 ");
        target.messgae(this.name);
    }
}
